﻿import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 1.3
import QtQuick.Controls.Styles 1.3
import QtWebKit 3.0
import QtWebKit.experimental 1.0


Item
{
    id:rootDateShow
  //  width: root.rightM*0.21
//    width: 475
//    height: 800
    width: 412
    height: 680
    property string urlValue: "http://127.0.0.1:15000/hbtmap/frame/Frame3d.html?code="
    Image {
        id: name
        source: "./切图/排行/底子.png"
        anchors.fill: parent
        width: parent.width
        height: parent.height
        z:-1
    }
    Item
    {

        id:titRec
        anchors.top: parent.top
        width: parent.width
        height: 46
        Text
        {
            id:tiltle
            text:root.passName
            font.family: "微软雅黑"
            font.pixelSize: 22
            font.bold : true
            color: "white"
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.top: parent.top
            anchors.topMargin: 22

        }
        Image {
            id: close
            source: "./切图/设置/关闭.png"
            anchors.right: parent.right
            anchors.rightMargin: 8
            anchors.top: parent.top
            anchors.topMargin: 8

            MouseArea
            {
                anchors.fill: parent
                onClicked:
                {
                    emit: openAppRanking()
                }
            }
        }
    }
    ScrollView {
        id: tabComponent
        width: parent.width - 5 ;
        height: parent.height - titRec.height

        anchors.top: titRec.bottom
        anchors.topMargin: 20
        contentItem: webEngineView
        verticalScrollBarPolicy:Qt.ScrollBarAlwaysOff
        WebView {
            id: webEngineView
            focus: true
            url:urlValue+root.cityRan
			experimental.preferredMinimumContentsWidth: 450
        }
    }


}
